package day8;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author oldliu
 * @since 1.0
 */
public class SendPicServer {
    public static void main(String[] args) {
        try {
            ServerSocket st=new ServerSocket(8889);
            System.out.println("服务启动了");
            while (true) {
                //建立连接
                Socket s = st.accept();
                new FileThread(s).start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
